﻿#pragma once


#include <ace/Acceptor.h>
#include <ace/SOCK_Acceptor.h>

#include "WebSocketClientHandler.h"


typedef ACE_Acceptor <WebSocketClientHandler, ACE_SOCK_ACCEPTOR> ClientAcceptorBase;

class WebSocketClientAcceptor : public ClientAcceptorBase
{
public:
  typedef ClientAcceptorBase super;

  WebSocketClientAcceptor(){}
  bool thread_per_connection (void)
  {
    return this->thread_per_connection_;
  }


  virtual int init (int argc, ACE_TCHAR *argv[]);
  virtual int fini (void);
protected:
  bool thread_per_connection_;  
};
